
#pragma once

#include <math.h>

#define M_PI		3.1415926535897932384626433832795028841971
#define rad(a)		a * M_PI / 180.0f
#define deg(a)		a * 180.0f / M_PI
#define min(a,b)	a < b ? a : b
#define max(a,b)	a > b ? a : b

/*
inline float sqrt(float num)
{
	long i;
    float x, y;
    float f = 1.5f;
    
    x = num * 0.5f;
    y = num;
    i = *(long*)&y;
    i = 0x5f3759df - (i >> 1);
    y = *(float*)&i;
    y = y * (f - (x * y * y));
    y = y * (f - (x * y * y));
    
    return num * y;
};
*/